package com.spic.business.violation.supervision.speed.domain;

import com.spic.business.common.core.domain.BasicEntity;
import com.spic.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 超速规则对象 violations_speed_rules
 *
 * @author spic
 * @date 2021-10-13
 */
public class ViolationsSpeedRules extends BasicEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 限速值 */
    @Excel(name = "限速值")
    private Double maxSpeed;

    /** 区域 */
    @Excel(name = "区域", dictType = "violations_addr")
    private String area;

    /** 车辆类型 */
    @Excel(name = "车辆类型", dictType = "vehicle_type")
    private String vehicleType;

    /** 版本 */
    @Excel(name = "版本")
    private Integer version;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaxSpeed(Double maxSpeed)
    {
        this.maxSpeed = maxSpeed;
    }

    public Double getMaxSpeed()
    {
        return maxSpeed;
    }
    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }
    public void setVehicleType(String vehicleType)
    {
        this.vehicleType = vehicleType;
    }

    public String getVehicleType()
    {
        return vehicleType;
    }
    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("maxSpeed", getMaxSpeed())
            .append("area", getArea())
            .append("vehicleType", getVehicleType())
            .append("version", getVersion())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
